<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class AddColumnDiscountImgElDiscountTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
	    Schema::table('el_discount', function (Blueprint $table) {
		    $table->string('discount_img', 255)->nullable()->comment('展示图片')->after('title');
	    });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
	    Schema::table('el_discount', function (Blueprint $table) {
	    	$table->dropColumn('discount_img');
	    });
    }
}
